package com.easy.dao;

import com.easy.bean.Admin;
import com.easy.bean.User;
import com.easy.util.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface AdminDao {
    Admin getAdminByUsername(@Param("username") String username);

    int add(@Param("admin") Admin admin);

    int edit(@Param("admin") Admin admin);

    int delete(@Param("adminid") int adminid);

    List<Admin> getList1(@Param("page") Page page, @Param("text") String text);

    int getCount1(@Param("text") String text);

}
